package com.pomelo.kill.model;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

@Data
public class Goods implements Serializable {

    private Integer id;

    /**
    * 商品名称
    */
    private String name;

    /**
    * 商品图片
    */
    private String image;

    /**
    * 商品描述
    */
    private String represent;

    /**
    * 原价
    */
    private BigDecimal oldPrice;

    /**
    * 秒杀价
    */
    private BigDecimal killPrice;

    /**
    * 秒杀时间
    */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8", shape = JsonFormat.Shape.STRING)
    private Date killTime;

    /**
     * 商品库存信息
     */
    private Stock stock;

    @Serial
    private static final long serialVersionUID = 1L;
}